package com.woniuxy02;

class Aaa{
    int i=1;

    public void testAaa(){
        System.out.println(i);
        System.out.println(this.i);
    }
}

class Bbb extends Aaa{
    int i=2;

    public void testBbb(){
        //super.属性，就是访问父类的属性
        System.out.println(super.i);
        //Bbb类中有个一成员变量i,没有定义，继承来的
        System.out.println(i);
        System.out.println(this.i);
    }
}

public class Test01 {
    public static void main(String[] args) {
//        Aaa aaa=new Aaa();
//        aaa.testAaa();

        Bbb bbb=new Bbb();
        bbb.testBbb();
    }
}
